package com.tcoiss.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tcoiss.app.domain.FenceDistrict;
import com.tcoiss.common.core.web.domain.AjaxResult;

import java.util.List;
import java.util.Map;

public interface IFenceDistrictService extends IService<FenceDistrict> {

    List<FenceDistrict> queryList(FenceDistrict fenceDistrict);

    List<Map<String,Object>> getDistrictInfo(FenceDistrict fence, String apiCode);

    /** 保存区县围栏 */
    boolean saveDistricts(List<FenceDistrict> districts);

    /** 检查区域名称是否重复 */
    boolean checkDistrict(FenceDistrict district);

    /** 保存或修改区域 */
    AjaxResult saveOrUpDataQyCache(FenceDistrict districts);

    boolean delDistrict(FenceDistrict district);

    boolean resetTownDistrict(FenceDistrict districts);

    boolean resetDistrict(FenceDistrict districts);

    /** 根据登录人角色获取区域属性 */
    List<Integer> getTowsPopByRole();

    boolean copyTownOrDistrict(FenceDistrict districts);

    boolean checkIsCopy(FenceDistrict districts);
}
